package com.bbs.feign.service;

import com.bbs.resp.Result;
import com.bbs.resp.ResultMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("bbs-article")
public interface FeignService {

    @RequestMapping("/article/details/{id}")
    ResultMsg article(@PathVariable String id);

    @GetMapping("/article/search")
    Result findByLike(@RequestParam String q);
}
